﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace RPSImporter.Models
{
   public class User
   {
      [Key]
      [DatabaseGenerated(System.ComponentModel.DataAnnotations.DatabaseGeneratedOption.Identity)]
      public Int64 UserId { get; set; }
      [Required(ErrorMessage = "Champ Obligatoire")]
      [StringLength(100)]
      [Display(Name = "Nom Utilisateur")]
      public String UserName { get; set; }
      [Required(ErrorMessage = "Champ Obligatoire")]
      [StringLength(100)]
      [Display(Name = "Mot de Passe")]
      [DataType(DataType.Password)]
      public String UserPassword { get; set; }
      [Display(Name = "Mode Administrateur")]
      public bool IsAdmin { get; set; }
   }
}